from django.urls import path
from api.views.user import (
    UserView, UserRegisterView, UserLoginView,
    UserLogoutView, UploadAvatar, UserListView
)
from api.views.graph import (
    GraphAllView, GraphSearchView, GraphGenerateView
)
from api.views.tools import (
    RandomTextView
)



urlpatterns = [
    path('user/register/', UserRegisterView.as_view()),
    path('user/login/', UserLoginView.as_view()),
    path('user/logout/', UserLogoutView.as_view()),
    path('user/upload/', UploadAvatar.as_view()),
    path('user/list/', UserListView.as_view()),
    path('user/', UserView.as_view()),
    path('tool/randomtext/', RandomTextView.as_view()),
    path('graph/all/', GraphAllView.as_view()),
    path('graph/search/', GraphSearchView.as_view()),
    path('graph/generate/', GraphGenerateView.as_view()),
]
